home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 5
/
Amiga Tools 5.iso
/
grafik
/
3d & render tools
/
irit
/
man
/
man6
/
ccinter.6
< prev
next >
Wrap
Text File
|
1996-07-16
|
2KB
|
44 lines
.TH CCINTER
6 "IRIT Version 6.0"
.SH NAME
CCINTER
ListType CCINTER( CurveType Crv1, CurveType Crv2, NumericType Epsilon,
NumericType SelfInter )
or
SurfaceType CCINTER( CurveType Crv1, CurveType Crv2, NumericType Epsilon,
NumericType SelfInter )
Computes the intersection point(s) of Crv1 and Crv2 in the
XY plane. Since this computation involves numeric operations, Epsilon
controls the accuracy of the parametric values of the result.
It returns a list of PointTypes, each containing the parameter of Crv1
in the X coordinate, and the parameter of Crv2 in the Y coordinate.
If, however, Epsilon is negative, a scalar field surface representing
the square of the distance function is returned instead.
If SelfInter is TRUE, Crv1 and Crv2 can be the same
curve, and self-intersection points are searched instead.
Example:
crv1 = cbspline( 3,
list( ctlpt( E2, 0, 0 ),
ctlpt( E2, 0, 0.5 ),
ctlpt( E2, 0.5, 0.7 ),
ctlpt( E2, 1, 1 ) ),
list( KV_OPEN ) );
crv2 = cbspline( 3,
list( ctlpt( E2, 1, 0 ),
ctlpt( E2, 0.7, 0.25 ),
ctlpt( E2, 0.3, 0.5 ),
ctlpt( E2, 0, 1 ) ),
list( KV_OPEN ) );
inter_pts = CCINTER( crv1, crv2, 0.0001, FALSE );
Computes the parameter values of the intersection point of crv1 and
crv2 to a tolerance of 0.0001.